// src/menu.ts
// 定义菜单项接口
interface MenuItem {
    path: string;
    title: string;
    roles?: string[];
    children?: MenuItem[];
}
const menuData: MenuItem[] = [
    {
        path: 'homePage',
        title: '主页',
        roles: ['1', '2', '3', '4'],
    },
    {
        path: 'realTime',
        title: '实时监控',
        roles: [ '2', '3', '4']
    },
    {
        path: 'monitor',
        title: '监控',
        roles: [ '2', '3', '4'],
        children: [
            {
                path: 'seamless',
                title: '无缝监控',
                roles: [ '2', '3']
            },
            {
                path: 'history',
                title: '查看历史监控',
                roles: [ '2', '3'],
            },
            {
                path: 'abnormal',
                title: '异常入侵检测',
                roles: [ '2', '3'],
            },
            {
                path: 'personnel',
                title: '人员识别',
                roles: [ '2', '3', '4'],
            },
            // {
            //     path: 'fire',
            //     title: '火灾检测',
            //     roles: ['3'],
            // },
        ],
    },
    {
        path: 'track',
        title: '路线',
        roles: [ '2', '3'],
        children: [
            {
                path: 'trackVideo',
                title: '路线跟踪',
                roles: [ '2', '3'],
            },
            {
                path: 'trackHistory',
                title: '查看历史路线',
                roles: [ '2', '3']
            },
        ],
    },
    {
        path: 'alert',
        title: '警报',
        roles: [ '2', '3', '4'],
        children: [
            {
                path: 'historyAlarm',
                title: '历史警报',
                roles: [ '2', '3', '4']
            },
            {
                path: 'historyAnalyst',
                title: '历史警报分析',
                roles: ['3', '4']
            },
        ],
    },
    {
        path: 'user',
        title: '人员',
        roles: [ '2', '3', '4'],
        children: [
            {
                path: 'whitelist',
                title: '管理白名单',
                roles: [ '2', '3']
            },
            {
                path: 'blacklist',
                title: '管理黑名单',
                roles: [ '2', '3']
            },
            {
                path: 'input',
                title: '录入信息',
                roles: [ '2', '3', '4']
            },
            {
                path: 'elderly',
                title: '老人列表',
                roles: ['3', '4']
            },
            {
                path: 'caregiver',
                title: '护工列表',
                roles: ['3']
            },
            {
                path: 'personnel',
                title: '人员统计',
                roles: ['3']
            }
        ],
    },
    {
        path: 'userManage',
        title: '用户管理',
        roles: ['3']
    },
];

export { menuData };
